(function() {
    console.log('hehe', _isMobile)
    App.set("$Cache.main.window_width", document.documentElement.clientWidth);
    App.set("$Cache.main.window_height", Math.ceil(0.4 * document.documentElement.clientWidth));
    var $width = document.documentElement.clientWidth;
    var $movebox = $(".movebox");
    if (!_isMobile) {
        var i = 1;
        setInterval(function() {
            var str = "translateX(-" + (100 * (i % 5)) + "%)";
            $movebox.css({
                "transform": str,
                "-webkit-transform": str
            });
            i++;
        }, 8000);
    }

    App.set("$Event.main.nothing", function() {
        alert("功能正在完善，请期待后续升级");
    });

}());
